<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String ctx = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + ctx + "/";
%>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <link rel="stylesheet" href="/css/login.css">
</head>

<body>
<header>
    <jsp:include page="topbar.jsp"/>
</header>
<div class="content">
    <div class="login">
        <h2><span>登录</span></h2>
        <form action="<%=ctx%>/Login/userLogin" method="post">
            <input type="text" name="userAccount" placeholder="请输入账号"
                   oninput="value=value.replace(/[^\d]/g,'')">
            <input type="password" name="userPassword" placeholder="请输入密码">
            <div class="week">
                <input name="flag"
                       type="checkbox"
                       style="width: fit-content;height: fit-content;margin-top: 15px;margin-right: 8px;">
                <p>记住密码</p>
            </div>
            <button type="submit" style="color: #81D3F8;background: #fff;border:solid #81D3F8 1px">登录</button>
            <button type="button" style="color: #81D3F8;background: #fff;border:solid #81D3F8 1px"><a
                    href="<%=ctx%>/Jump?string=register">注册</a></button>
        </form>
        </button>
    </div>
</div>
</body>
</html>